package com.fxp.project.jiuselu.web.models.withdrawal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户提现记录表
 * </p>
 *
 * @author Jason.Wang
 * @since 2022-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class JslUserWithdrawalRecord implements Serializable {


    @TableId(value = "withdrawal_id", type = IdType.AUTO)
    private Long withdrawalId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 银行卡id
     */
    @TableField("bank_card_id")
    private Long bankCardId;

    /**
     * 申请日期(也就是数据创建日期)
     */
    @TableField("apply_time")
    private LocalDateTime applyTime;

    /**
     * 打款日期
     */
    @TableField("payment_time")
    private LocalDateTime paymentTime;

    /**
     * 打款人id
     */
    @TableField("payment_user_id")
    private Long paymentUserId;

    /**
     * 状态0 提交申请。1拒绝2已打款
     */
    private Integer status;

    /**
     * 数据更新时间。
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 更新人id
     */
    @TableField("update_user_id")
    private Long updateUserId;

    /**
     * 理由(主要用于被拒绝填写的理由)
     */
    private String reason;

    /**
     * 申请金额
     */
    private BigDecimal amount;


}
